import 'package:flutter/material.dart';
import 'package:lib_uikit/lib_uikit.dart';
import 'package:lib_uikit/widgets/time_picker/picker_style_v3.dart';

// 日间圆角
final headDecorationLight = BoxDecoration(
    color: Colors.white,
    borderRadius: const BorderRadius.only(
        topLeft: Radius.circular(10), topRight: Radius.circular(10)));

/// 无标题样式
class NoTitleStyle extends PickerStyle {
  NoTitleStyle() {
    this.showTitleBar = false;
  }

  /// 夜间
  NoTitleStyle.dark() {
    this.showTitleBar = false;
    this.backgroundColor = Colors.grey[800]!;
    this.textColor = Colors.white;
  }
}

/// 默认样式
class DefaultPickerStyle extends PickerStyle {
  DefaultPickerStyle(String? title, String? subTitle, String? startText,
      String? endText, bool? startTextSelected, bool? endTextSelected) {
    this.headDecoration = BoxDecoration(
        color: GTColorsV3.cmpt16.color,
        borderRadius: const BorderRadius.only(
            topLeft: Radius.circular(8), topRight: Radius.circular(8)));
    this.titleText = title;
    this.subTitle = subTitle;
    this.startText = startText;
    this.endText = endText;
    this.startTextSelected = startTextSelected;
    this.endTextSelected = endTextSelected;
  }
}
